<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <title>Test Index2</title>
        <%= stylesheet_link_tag "../javascripts/ext/resources/css/ext-all.css" %>
        <%= stylesheet_link_tag "/stylesheets/blue.css" %>
        <%= stylesheet_link_tag "/stylesheets/images.css" %>
        <%= javascript_include_tag "/javascripts/application.js" %>
        <%= javascript_include_tag "/javascripts/ext/adapter/prototype/prototype.js" %>
        <%= javascript_include_tag "/javascripts/ext/adapter/prototype/scriptaculous.js" %>
        <%= javascript_include_tag "/javascripts/ext/adapter/prototype/effects.js" %>
        <%= javascript_include_tag "/javascripts/ext/adapter/prototype/ext-prototype-adapter.js" %>
        <!-- LIBS -->
        <%if session[:explorer_info]=="IE" %>
        <%= javascript_include_tag "/javascripts/ext/adapter/ext/ext-base.js" %>
        <%end %>
        <!--<%= javascript_include_tag "/javascripts/ext/adapter/ext/ext-base.js" %>-->
        <!-- ENDLIBS -->
        <%= javascript_include_tag "/javascripts/ext/ext-all-debug.js" %>
        <%= javascript_include_tag "/javascripts/ext/examples.js" %>
        <%= javascript_include_tag "/javascripts/ext/build/locale/ext-lang-zh_CN.js" %>
    </head>
    <body>
        <div id="hello">
        </div>
        <script>
            Ext.onReady(function(){
            
                var top = new Ext.FormPanel({
                    labelAlign: 'top',
                    frame: true,
                    title: 'Multi Column, Nested Layouts and Anchoring',
                    bodyStyle: 'padding:5px 5px 0',
                    width: 600,
                    items: [{
                        layout: 'column',
                        items: [{
                            columnWidth: .5,
                            layout: 'form',
                            items: [{
                                xtype: 'textfield',
                                fieldLabel: 'First Name',
                                name: 'first',
                                anchor: '95%'
                            }, {
                                xtype: 'textfield',
                                fieldLabel: 'Company',
                                name: 'company',
                                anchor: '95%'
                            }]
                        }, {
                            columnWidth: .5,
                            layout: 'form',
                            items: [{
                                xtype: 'textfield',
                                fieldLabel: 'Last Name',
                                name: 'last',
                                anchor: '95%'
                            }, {
                                xtype: 'textfield',
                                fieldLabel: 'Email',
                                name: 'email',
                                vtype: 'email',
                                anchor: '95%'
                            }]
                        }]
                    }, {
                        xtype: 'htmleditor',
                        id: 'bio',
                        fieldLabel: 'Biography',
                        height: 200,
                        anchor: '98%'
                    }],
                    
                    buttons: [{
                        text: 'Save'
                    }, {
                        text: 'Cancel'
                    }]
                });
                
                top.render(document.body);
                
            });
        </script>
    </body>
</html>
